<template>
  <div>
    <h2>News组件</h2>
  </div>
</template>

<script>
export default {
  name: "News",
  mounted() {
    console.log("News的mounted生命周期函数");
  },
  beforeDestroy() {
    console.log("News的beforeDestroy生命周期函数");
  },
  activated() {
    console.log("News的激活生命周期activated");
  },
  deactivated() {
    console.log("News的失活生命周期deactivated");
  },
};
</script>

<style></style>
